from django.conf.urls import url
from . import views


urlpatterns = [
    url(r'cs/$', views.cookie_session),
    url(r'reg/$', views.register),
    # as_view() 是一个函数
    url(r'regview/$', views.RegisterView.as_view()),
    url(r'bookview/$', views.BookView.as_view()),
    url(r'middleware_view', views.demo_view),
    url(r'index/$', views.index),
]